<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // var arr1 = ["hello", 123, true, {}, [], function(){}, undefined, null, "world"];

    // var arr3 = ["hello", 123, true, {}, [], function(){}, undefined, null, "world"];

    // // 一个栈保存了另一个栈的堆地址
    // var arr4 = arr1;

    // var arr2 = new Array("hello", 123, true, {}, [], function(){}, undefined, null, "world")

    // console.log(arr1);
    // console.log(arr2);

    // // 任何两个对象都不相等，哪怕长得一样，哪怕创建方式也一样
    // console.log(arr1 === arr2);
    // console.log(arr1 === arr3);
    
    // // 一个栈保存了另一个栈的堆地址
    // console.log(arr4 === arr1);



    var arr1 = [5];
    var arr2 = new Array(5);
    console.log(arr1);
    console.log(arr1[0]);
    console.log(arr1.length);
    console.log(arr2);
    console.log(arr2[0]);
    console.log(arr2.length);
</script>
</html>